<meta charset="UTF-8">
<div id="userList" class="unswift-module-page">
	<form id="userListSearchForm" class="layui-form layui-row layui-col-space16" style="width:100%;">
		<div class="layui-col-md4">
			<div class="layui-input-wrap">
				<input type="text" name="account" placeholder="登录账号/手机号/电子邮箱" class="layui-input">
			</div>
		</div>
		<div class="layui-col-md6">
			<div class="layui-input-wrap" id="userCreateTime">
				<div class="layui-col-md5">
					<input type="text" id="userCreateStartTime" name="createStartTime" class="layui-input" placeholder="创建开始日期">
				</div>
				<div class="layui-form-mid" style="margin:0px 5px;">-</div>
				<div class="layui-col-md5">
					<input type="text" id="userCreateEndTime" name="createEndTime" class="layui-input" placeholder="创建结束日期">
				</div>
			</div>
		</div>
		<div class="layui-col-md2">
			<span class="layui-btn" onclick="$.module.currModule.search();">查询</span>
			<span class="layui-btn layui-btn-primary" onclick="$.module.currModule.clear();">重置</span>
		</div>
	</form>
	<table class="layui-hide" id="userListTable" lay-filter="userListTable"></table>
</div>
<script type="text/html" id="userListToolbar">
	<div class="layui-btn-container">
    	<span class="layui-btn layui-btn-sm" auth="system.user.create" lay-event="add" title="新建"><i class="layui-icon layui-icon-addition"></i></span>
    	<span class="layui-btn layui-btn-sm" auth="system.user.import" lay-event="import" title="导入"><i class="layui-icon layui-icon-upload-circle"></i></span>
    	<span class="layui-btn layui-btn-sm layui-bg-blue layui-btn-disabled" auth="system.user.update" lay-event="edit" title="编辑"><i class="layui-icon layui-icon-edit"></i></span>
    	<span class="layui-btn layui-btn-sm layui-bg-orange layui-btn-disabled" auth="system.user.updateAuthorize" lay-event="authorize" title="授权"><i class="layui-icon layui-icon-auz"></i></span>
    	<span class="layui-btn layui-btn-sm layui-bg-red layui-btn-disabled" auth="system.user.delete" lay-event="delete" title="删除"><i class="layui-icon layui-icon-delete"></i></span>
		<span class="layui-btn layui-btn-sm layui-bg-cyan layui-btn-disabled" lay-event="lookLogger" title="日志列表"><i class="layui-icon layui-icon-log"></i></span>
	</div>
</script>
<script type="text/html" id="userListRowToolbar">
	<div class="layui-clear-space">
		<a class="layui-btn layui-btn-xs layui-bg-blue" auth="system.user.update" lay-event="edit" style="display:{{= d.isAdmin == 1 ? "none" : "" }};"><i class="layui-icon layui-icon-edit"></i>编辑</a>
		<a class="layui-btn layui-btn-xs layui-bg-orange" auth="system.role.updateAuthorize" lay-event="authorize" style="display:{{= d.isAdmin == 1 ? "none" : "" }};"><i class="layui-icon layui-icon-auz"></i>授权</a>
		<a class="layui-btn layui-btn-xs layui-bg-red" auth="system.user.delete" lay-event="delete" style="display:{{= d.isAdmin == 1 ? "none" : "" }};"><i class="layui-icon layui-icon-delete"></i>删除</a>
	</div>
</script>
<script type="text/html" id="userListStatusToolbar">
	<input type="checkbox" name="status" value="{{= d.id }}" title="|" lay-skin="switch" lay-filter="userStatus" {{= d.status == 1 ? "checked" : "" }} {{= d.isAdmin == 1 ? "disabled" : "" }}>
</script>
<script type="text/javascript" src="/js/admin/system/user.js"></script>